package com.qianbao.service.address;

import com.qianbao.components.excepion.CommonException;
import com.qianbao.domain.address.AddressEntity;

import java.util.List;

public interface AddressService {

    /**
     * 根据用户id查询所有的地址
     * @param customId
     * @return
     */
    public List<AddressEntity> findAllAddressList(String customId) throws CommonException;


    /**
     * 新增地址
     * @param entity
     * @throws CommonException
     */
    public void saveAddress(AddressEntity entity) throws CommonException;


    /**
     * 更新地址
     * @param entity
     * @throws CommonException
     */
    public void updateAddress(AddressEntity entity) throws CommonException;


    /**
     * 删除地址
     * @param addressId
     * @throws CommonException
     */
    public void deleteAddress(String addressId) throws CommonException;


}
